package org.xxpay.core.service;

import org.xxpay.core.entity.StatisticsMch;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 商户统计表 服务类
 * </p>
 *
 * @author xxpay generator
 * @since 2021-02-26
 */
public interface IStatisticsMchService {

    int add(StatisticsMch statisticsMch);

    int updateByPrimaryKey(StatisticsMch statisticsMch);

    StatisticsMch findByPrimaryKey(Long mchId, Date statisticsDate);

    Long count(Date createTimeStart, Date createTimeEnd, Long mchId);

    List<StatisticsMch> list(Date createTimeStart, Date createTimeEnd, Long mchId);

    List<Map> list(int pageIndex, int pageSize, Date createTimeStart, Date createTimeEnd, Long mchId);

    Map countAll(Long mchId);

    int updateStatistics(StatisticsMch updateRecord);

    Long count2MchTop(Long agentId, Long mchId, Date createTimeStart, Date createTimeEnd);

    List<Map> mchTopList(int pageIndex, int pageSize, Long agentId, Long mchId, Date createTimeStart, Date createTimeEnd);
}
